'''
Created on 7 Nov 2010

@author: Karl Beecher
'''

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from pages.StartPage import StartPage
from pages.LoadTourPage import LoadTourPage
from pages.ShowStopPage import ShowStopPage
from pages.UploadAudioHandler import UploadAudioHandler
from pages.DownloadAudioHandler import DownloadAudioHandler
from pages.UploadTourPage import UploadTourPage

application = webapp.WSGIApplication([
                                      ('/', StartPage),
                                      ('/loadTour', LoadTourPage),
                                      ('/showStop', ShowStopPage),
                                      ('/uploadTour', UploadTourPage),
                                      ('/uploadAudio', UploadAudioHandler),
                                      ('/downloadAudio/(.*)', DownloadAudioHandler)],
                                      debug = True)

def main():
    run_wsgi_app(application)

if __name__ == '__main__':
    main()
